import http from './../util/http';
import urlConcat from './url-concat';
import format from './../util/timer';
export default {
  async yieldProductAnalysisAdd(obj: any) {
    const paramsUrl = urlConcat(`/yieldProductivAnalysis/add`, obj);
    return http.post(paramsUrl);
  },
  async yieldProductAnalysisDel(ids: string) {
    const paramsUrl = urlConcat(`/yieldProductivAnalysis/delete`, {
      ids,
    });
    return http.get(paramsUrl);
  },
  async yieldProductAnalysisList(obj: any) {
    obj.createTime = format(obj.createTime) || '';
    const paramsUrl = urlConcat(`/yieldProductivAnalysis/selectListPage`, obj);
    return http.get(paramsUrl);
  },
  async yieldProductAnalysisUpdate(obj: any) {
    const paramsUrl = urlConcat(`/yieldProductivAnalysis/update`, obj);
    return http.post(paramsUrl);
  },
};
